import type { BaseTableConfig } from '@/components/base-ui/base-table/type';
import { thWordLength4, widthLevel1, widthLevel2 } from '@/config';

export const tableConfig: BaseTableConfig = {
    items: [
        {
            modelKey: 'equipmentNumber',
            columnProps: {
                label: '设备编码',
                width: widthLevel2
            }
        },
        {
            modelKey: 'deviceName',
            columnProps: {
                label: '设备名称',
                width: widthLevel2
            }
        },
        {
            modelKey: 'deviceType',
            columnProps: {
                label: '设备类型',
                width: widthLevel2
            }
        },
        {
            modelKey: 'equipmentStatus',
            slotName: 'equipmentStatus',
            columnProps: {
                label: '设备状态',
                width: thWordLength4
            }
        },
        {
            modelKey: 'workshopName',
            columnProps: {
                label: '所属车间',
                width: widthLevel2
            }
        },

        {
            modelKey: 'creator',
            columnProps: {
                label: '创建人',
                width: widthLevel2
            }
        },
        {
            modelKey: 'createTime',
            columnProps: {
                label: '创建时间 ',
                width: widthLevel1
            }
        }
    ]
};
